package com.ionehe.component;

import com.ionehe.handler.MessageListener;
import com.ionehe.model.api.Message;
import com.ionehe.domain.service.impl.RabbitTemplateContainer;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * Copyright (c) 2021 ionehe.com
 * Date: 2021/4/19
 * Time: 1:45 下午
 *
 * @author 2021年 <a href="mailto:a@ionehe.com">秀</a>
 * 【消费者监听器】
 */
public class ConsumerClient implements MessageListener {
    @Autowired
    private RabbitTemplateContainer rabbitTemplateContainer;

    @Override
    public void onMessage(Message message) {
        rabbitTemplateContainer.getTemplate(message)
    }
}
